<?php
class ImageInfrastructureWebServiceServer extends WebServiceServer {
	protected function handleRequest($function_name, $parameters, $files) {
		switch ($function_name) {
			case 'ImageInfrastructure::Upload':
				$result = call_user_func(
					$function_name,
					$parameters['id'],
					$files['file']['tmp_name'],
					$files['file']['name']
				);
				break;
			default:
				$result = parent::handleRequest($function_name, $parameters, $files);
				break;
		}

		return $result;
	}
}
?>
